package lhdx9;

public class DaZhong extends Automobile {
    private String name;
    public DaZhong(String yangS, String cheP,String name) {
        super(yangS, cheP);
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void print(){
        System.out.println("这辆轿车是"+name);
        super.print();
    }
}
